<div class="modal-content">
  <div class="modal-header">
    <h4 class="modal-title" >设置课表</h4>
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
      <span aria-hidden="true">×</span>
    </button>
  </div>


<!-- Table -->

<div class="panel panel-primary">
  <!-- Default panel contents -->
  <div class="panel-heading" style="background: none;text-align: center;">
  <span style="font-weight: bold;color:#333;">课程表</span>
  </div>
  
  <!-- Table -->
  <table class="table table-bordered" style="text-align: center;">
  	<thead>
  		<tr>
  			<td colspan="2"><span ng-if="form.week == '0'">无单双</span><span ng-if="form.week == '1'">单</span><span ng-if="form.week == '2'">双</span>周</span></td>
  			<!-- <td colspan="2"><span ng-if="form.week != 'undefined' && form.week != undefined && form.week != ''"><span ng-if="form.week == '1'">单</span><span ng-if="form.week == '2'">双</span>周</span></span></td> -->
  			<td>星期一</td>
  			<td>星期二</td>
  			<td>星期三</td>
  			<td>星期四</td>
  			<td>星期五</td>
  		</tr>
  	</thead>
    <tbody ng-switch on="page.current_num">
   	<tr ng-switch-when="0">
   		<td colspan="100" class="NoSelectHistory">查询无记录</td>
   	</tr>
     <tr ng-repeat='row in dataList'>
         <td ng-if="0 == $index" rowspan="{{row.forenoon}}" valign="middle">上<br/>午</td>
         <td ng-if="row.forenoon == $index" rowspan="{{row.afternoon}}" valign="middle">下<br/>午</td>
         <td ng-if="row.forenoon+row.afternoon == $index" valign="middle"></td>
      <td>{{row.course_time}}</td>
       <td>
       <select class="form-control" ng-model="row.course_table1" ng-options="course.id as course.course_info for course in tables">
       	    <option value="">--设置--</option>
       </select>
       </td>
       <td>
       <select class="form-control" ng-model="row.course_table2" ng-options="course.id as course.course_info for course in tables">
       	<option value="">--设置--</option>
       </select>
       </td>
       <td>
       <select class="form-control" ng-model="row.course_table3"  ng-options="course.id as course.course_info for course in tables">
       	<option value="">--设置--</option>
       </select>
       </td>
       <td>
       <select class="form-control" ng-model="row.course_table4"  ng-options="course.id as course.course_info for course in tables">
       	<option value="">--设置--</option>
       </select>
       </td>
       <td>
       <select class="form-control" ng-model="row.course_table5"  ng-options="course.id as course.course_info for course in tables">
       	<option value="">--设置--</option>
       </select>
       </td>
     </tr>
    
   </tbody>
  </table>
</div>

  <div class="modal-footer">
 <button ng-click="saveForm()" type="button" class="btn btn-success"><i class="iconfont icon-correct"></i>&nbsp;保存</button>
  </div>
  
</div>  

